package com.liu.webstore.service;

import java.util.List;
import java.util.Map;

/**
 * @Author LiuYumei
 * @Date 2022/8/6 15:48
 */
public interface FollowService {
    void follow(int userId, int entityType, int entityId);

    void unFollow(int userId, int entityType, int entityId);

    long findFolloweeCount(int userId, int entityType);

    long findFollowerCount(int entityType, int entityId);

    boolean hasFollowed(int userId, int entityType, int entityId);

    List<Map<String, Object>> findFolloweeList(int userId, int offset, int limit);

    List<Map<String, Object>> findFollowerList(int userId, int offset, int limit);
}
